import Company from "../component/Company.vue";
import Project from "../component/Project.vue";
import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
        path: "/",
        name: 'Company',
        component: Company,
    },
    {
        path: "/project/:projectId",
        name: 'Project',
        component: Project,
        props: true,
    },
    ],
});

export default router;